package com.seadragon.apps.doctorcard.model;

import java.io.Serializable;

public class ObjectWithUserInfo<T>  implements Serializable{
	private static final long serialVersionUID = -2319256653295747707L;
	private T result;
	private Contact contact;

	public ObjectWithUserInfo(T t, Contact contact) {
		if(contact != null){
			this.contact = new Contact();
			this.contact.setId(contact.getId());
			this.contact.setName(contact.getName());
			this.contact.setMobile(contact.getMobile());
			this.contact.setEnglishName(contact.getEnglishName());
			this.contact.setEmail(contact.getEmail());
		}
		this.result = t;
	}

	public T getResult() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}

	public Contact getContact() {
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}
}
